package org.huangrui.design.pattern.factory.simple;

public class TestVehicle {
    public static void main(String[] args) {
        Vehicle v1 = VehicleFactory.getVehicle("Bike");
        v1.drive();

        Vehicle v2 = VehicleFactory.getVehicle("Electromobile");
        v2.drive();

        Vehicle v3 = VehicleFactory.getVehicle("Car");
        v3.drive();
    }

}
